import { Notify, QTable, QForm, Dialog } from "quasar";
import { defineBoot } from "#q-app/wrappers";

// console.log(QBtn);

// QBtn.props.outline = {
//   default: true,
//   type: Boolean
// };

console.log(Dialog);

QForm.props.greedy = {
  default: true,
  type: Boolean
};

// QTable.props.rowsPerPageLabel = "每页显示";
// paginationLabel

// console.log(QTable.props.paginationLabel());

QTable.props.rowsPerPageOptions.default = () => [5, 10, 20, 50, 100];

Notify.registerType("success", {
  color: "positive",
  position: "center",
  timeout: 1000,
  icon: "check_circle"
});

Notify.registerType("error", {
  color: "negative",
  position: "center",
  timeout: 1000,
  icon: "fa-regular fa-circle-xmark"
});

Notify.registerType("warning", {
  color: "warning",
  position: "center",
  timeout: 1000,
  icon: "report_problem"
});

export default defineBoot(() => {});
